package com.infolab.aims.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.infolab.aims.common.bean.AbstractModelBean;

@Entity
@Table(name = "AMVW_ARCHIVE")
public class Archive extends AbstractModelBean implements Serializable {

	@EmbeddedId
	private ArchivePK archivePK;

	private String archiveCode;

	private String archiveName;

	public Archive() {

	}

	public Archive(Integer archiveId, String type, String archiveCode, String archiveName, String modifiedBy, Date dateModified) {
		this.archivePK = new ArchivePK();
		this.archivePK.setArchiveId(archiveId);
		this.archivePK.setType(type);
		this.archiveCode = archiveCode;
		this.archiveName = archiveName;
		super.setModifiedBy(modifiedBy);
		super.setDateModified(dateModified);
	}

	public ArchivePK getArchivePK() {
		return archivePK;
	}

	public void setArchivePK(ArchivePK archivePK) {
		this.archivePK = archivePK;
	}

	public String getArchiveCode() {
		return archiveCode;
	}

	public void setArchiveCode(String archiveCode) {
		this.archiveCode = archiveCode;
	}

	public String getArchiveName() {
		return archiveName;
	}

	public void setArchiveName(String archiveName) {
		this.archiveName = archiveName;
	}

}
